import {Component} from '@angular/core';
import {
    AlertController, LoadingController, NavController, NavParams, Platform, ToastController,
    ViewController
} from 'ionic-angular';
import {SystemService} from "../service/SystemService";
import {BasePage} from "../BasePage";
import {Log} from "../../framework/utils/Log";

/**
 * Generated class for the PlanPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */


@Component({
    selector: 'page-zChanCardInfo',
    templateUrl: 'zChanCardInfo.html',
    providers: [SystemService]
})
export class ZChanCardInfoPage extends BasePage {
    private static TAG:string="ZChanCardInfoPage";
    list: Array<any>= [];
    constructor(public navCtrl: NavController, public navParams: NavParams, public view: ViewController, public sys: SystemService, public platform: Platform,
                public loadingCtrl: LoadingController,
                public toastCtrl: ToastController,
                public alertCtrl: AlertController) {
        super(platform, loadingCtrl, toastCtrl, alertCtrl);

        this.list = navParams.data.list;

    }

    ionViewDidLoad() {
        Log.w(ZChanCardInfoPage.TAG,"ionViewDidLoad");
    }

    close(){
        if(this.view){
            this.view.dismiss(null, '', {animate: false});
        }
    }

}
